using Sustainalytics.ESGRatings.Computing.Entities.ESG;
using Sustainalytics.ESGRatings.Primitives;
using System;
using System.Collections.Generic;

namespace Sustainalytics.ESGRatings.BusinessLogic.Computing
{
    internal class PeerGroupSet : ESGSet
    {
        /// <exception cref="ComputeException">Exception when adding set</exception>
        public PeerGroupSet(IndicatorsConfiguration indicatorsConfiguration, ICollection<ESGCompanyEntity> companyEntities, bool isActive, Guid? defaultMatrixId)
            : base(indicatorsConfiguration, companyEntities, x => x.PeerGroup, StringComparer.InvariantCultureIgnoreCase, isActive)
        {
            SetType = ComputationSetTypeEnum.PeerGroup;
            DefaultMatrixId = defaultMatrixId;
        }
    }
}